//
//  main.m
//  oc_20
//
//  Created by 楼楚 on 15/9/17.
//  Copyright (c) 2015年 Chu Lou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PersonB.h"
#import "PersonA.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        PersonA *pa = [[PersonA alloc]init];
        PersonB *pb = [[PersonB alloc]init];
        
        pa.delegate = pb;
        
        if (pa.delegate && [pa.delegate respondsToSelector:@selector(doSomeThing:)]) {
            [pa.delegate doSomeThing:@"hello world"];
        }
        
       
    }
    return 0;
}
